from django.urls import include, path
from rest_framework import routers
from . import views
from django.conf.urls import url


urlpatterns = [
    path('login/', views.login),
    path('logout/', views.logout),
    path('is_authenticated/', views.is_authenticated),
    path('has_permission/', views.has_permission),
    path('home/', include('api.home.urls')),
    path('unit_management/', include('api.unit_management.urls')),
    path('property_management/', include('api.property_management.urls')),
    path('attachment_management/', include('api.attachment_management.urls')),
    path('experiment_management/', include('api.experiment_management.urls')),
    path('subject_management/', include('api.subject_management.urls')),
    path('user_management/', include('api.user_management.urls')),
    path('auth/login/', include('rest_framework.urls', namespace='rest_framework')),
    # path('upload/', views.FileSerializer),
]
